package com.bestcem.xm.om.enums;

import lombok.Getter;

/**
 * 行业对应手机号枚举类
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/4 9:45
 */
@Getter
public enum CodeMobileEnum {

    /**
     * 零售｜快消
     */
    APPLICANT_TRADE_RETAIL(CEMIndustryCodeEnum.APPLICANT_TRADE_RETAIL, MobileEnum.RETAIL_MOBILE_DICT),
    /**
     * 餐饮
     */
    APPLICANT_TRADE_DIET(CEMIndustryCodeEnum.APPLICANT_TRADE_DIET, MobileEnum.RETAIL_MOBILE_DICT),
    /**
     * 汽车｜交通｜物流
     */
    APPLICANT_TRADE_VEHICLE(CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE, MobileEnum.VEHICLE_MOBILE_DICT),
    /**
     * 医疗
     */
    APPLICANT_TRADE_MEDICAL(CEMIndustryCodeEnum.APPLICANT_TRADE_MEDICAL, MobileEnum.MEDICAL_MOBILE_DICT),
    /**
     * 地产
     */
    APPLICANT_TRADE_ESTATE(CEMIndustryCodeEnum.APPLICANT_TRADE_ESTATE, MobileEnum.MALL_MOBILE_DICT),
    /**
     * 互联网｜软件｜SaaS
     */
    APPLICANT_TRADE_TOURISM(CEMIndustryCodeEnum.APPLICANT_TRADE_TOURISM, MobileEnum.MALL_MOBILE_DICT),
    /**
     * 酒店
     */
    APPLICANT_TRADE_HOTEL(CEMIndustryCodeEnum.APPLICANT_TRADE_HOTEL, MobileEnum.MALL_MOBILE_DICT),
    /**
     * 银行｜保险｜金融
     */
    APPLICANT_TRADE_FINANCE(CEMIndustryCodeEnum.APPLICANT_TRADE_FINANCE, MobileEnum.FINANCE_MOBILE_DICT),
    /**
     * 互联网｜软件｜SaaS
     */
    APPLICANT_TRADE_INTERNET(CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET, MobileEnum.TMT_MOBILE_DICT),
    /**
     * 通信
     */
    APPLICANT_TRADE_COMMUNICATIONS(CEMIndustryCodeEnum.APPLICANT_TRADE_COMMUNICATIONS, MobileEnum.TMT_MOBILE_DICT),
    /**
     * 高校
     */
    APPLICANT_TRADE_COLLEGES(CEMIndustryCodeEnum.APPLICANT_TRADE_COLLEGES, MobileEnum.HUMAN_SERVICES_MOBILE_DICT),
    /**
     * 公共事业
     */
    APPLICANT_TRADE_HUMAN_SERVICES(CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_SERVICES, MobileEnum.HUMAN_SERVICES_MOBILE_DICT),
    /**
     * 调研｜咨询｜广告
     */
    APPLICANT_TRADE_HUMAN_CONSULTATION(CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_CONSULTATION, MobileEnum.RETAIL_MOBILE_DICT),
    /**
     * 其他
     */
    APPLICANT_TRADE_OTHER(CEMIndustryCodeEnum.APPLICANT_TRADE_OTHER, MobileEnum.OTHER_MOBILE_DICT),
    /**
     * doc
     */
    APPLICANT_TRADE_CARE_BEAUTY(CEMIndustryCodeEnum.APPLICANT_TRADE_CARE_BEAUTY, MobileEnum.MEDICAL_MOBILE_DICT),
    /**
     * doc
     */
    APPLICANT_TRADE_PROPERTY(CEMIndustryCodeEnum.APPLICANT_TRADE_PROPERTY, MobileEnum.MALL_MOBILE_DICT),
    /**
     * doc
     */
    APPLICANT_TRADE_3C(CEMIndustryCodeEnum.APPLICANT_TRADE_3C, MobileEnum.APPLIANCE_MOBILE_DICT),
    /**
     * doc
     */
    APPLICANT_TRADE_GAME(CEMIndustryCodeEnum.APPLICANT_TRADE_GAME, MobileEnum.TMT_MOBILE_DICT),
    /**
     * doc
     */
    APPLICANT_TRADE_B2B(CEMIndustryCodeEnum.APPLICANT_TRADE_B2B, MobileEnum.B2B_MAIL_DICT);

    private final CEMIndustryCodeEnum cemIndustryCodeEnum;

    private final MobileEnum mobileEnum;

    CodeMobileEnum(CEMIndustryCodeEnum cemIndustryCodeEnum, MobileEnum mobileEnum) {
        this.cemIndustryCodeEnum = cemIndustryCodeEnum;
        this.mobileEnum = mobileEnum;
    }

    public static MobileEnum getByCemIndustryCodeEnum(CEMIndustryCodeEnum cemIndustryCodeEnum) {
        for (CodeMobileEnum status : values()) {
            if (cemIndustryCodeEnum == status.getCemIndustryCodeEnum()) {
                return status.getMobileEnum();
            }
        }
        return null;
    }

}
